package com.timebank.score.pojo.entity;

import com.timebank.common.core.web.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * 积分交易
 * @author shiliuyinzhen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@ApiModel("积分交易模型")
public class ScoreTrade extends BaseEntity {

    /** 交易Id */
    @ApiModelProperty("交易Id")
    private Long id;

    /** 商品Id */
    @ApiModelProperty("商品Id")
    private Long goodsId;

    /** 支付者Id */
    @ApiModelProperty("支付者Id")
    private Long payerId;

    /** 支付者昵称 */
    @ApiModelProperty("支付者昵称")
    private String payerName;

    /** 积分数量 */
    @ApiModelProperty("积分数量")
    private Integer score;

    /** 积分交易状态 */
    @ApiModelProperty("积分交易状态")
    private Integer status;

    /** 删除标志 */
    @ApiModelProperty("删除标志")
    private Integer delFlag;
}
